package com.ktjy.t382.ch01.mapper;


import com.ktjy.t382.ch01.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    /**
     * 查询用户信息列表
     */

    public List<SysUser> getSysUserList(@Param("sysUser") SysUser sysUser, @Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize);

    public Integer getSysUserCount(SysUser sysUser);

    public SysUser getSysUserById(Integer id);

    public int insert(SysUser sysUser);

    public int update(SysUser sysUser);

    public int delete(Integer id);

    public SysUser getSysUserByAccount(String account);

    public SysUser getByAccount(String account) throws Exception;
}
